-
Notifications
You must be signed in to change notification settings - Fork 320
Add test for flex-grow being less than one #1106
Conversation
Automatic validation checks of commit 0c227d9 passed. |
Automatic validation checks of commit 0c227d9 passed. |
Automatic validation checks of commit 0c227d9 passed. |
|
Maybe add a test for flex-shrink for this circumstance as well? |
|
@cbiesinger Yeah, I have some vague plan to improve flexbox coverage, but getting browsers running tests is higher priority for now. |
0c227d9 to
de09714
Compare
Automatic validation checks of commit de09714 passed. |
Automatic validation checks of commit d3d47be passed. |
| } | ||
| #test2 > div { | ||
| flex-shrink: 0.25; | ||
| width: 75px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've done the maths for this three times and got three different results. (I've gone wrong in different places each time!) From the one time I got what every browser does, can someone else confirm that this doesn't run into (undefined) rounding issues?
d3d47be to
f0277ff
Compare
Automatic validation checks of commit f0277ff passed. |
This was accidentally tested prior to w3c#1104.
f0277ff to
161d427
Compare
Automatic validation checks of commit 161d427 passed. |
fantasai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we also need a test similar to #test2 that uses two different sizes for the two items, but what's here is correct.
This was accidentally tested prior to #1104 (but incorrectly).
This change is